<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>21-分页组件</title>
    <script src="../js/vue.js"></script>
    <script src="../element-ui/lib/index.js"></script>
    <link rel="stylesheet" href="../element-ui/lib/theme-chalk/index.css">
</head>
<body>
<div id="app">
<el-pagination
    :total="pageInfo.total"
    :page-size="pageInfo.pageSize"
    :current-page="pageInfo.pageNum"
    :page-sizes="pageInfo.pageSizes"
    layout="total,prev,pager,next,jumper,sizes"
>
</el-pagination>
</div>
<script>
    const vm = new Vue({
        el: "#app",
        data: {
            pageInfo:{
                total:30,
                pageSize:10,
                pageNum:2,
                pageSizes:[2,3,5,10,20],
            }
        },
        methods: {},
    });
</script>
</body>
</html>